PygmentsHighlighter
Base classes
| Name | Children | Inherits |
|---|---|---|
| SyntaxHighlighter prettyqt.gui.syntaxhighlighter |
|
⋔ Inheritance diagram
graph TD
3398420805["syntaxhighlighters.PygmentsHighlighter"]
1397204487["gui.SyntaxHighlighter"]
1524332846["gui.SyntaxHighlighterMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
1270797816["QtGui.QSyntaxHighlighter"]
3984060476["QtCore.QObject"]
37984305["Shiboken.Object"]
1397204487 --> 3398420805
1524332846 --> 1397204487
3227531497 --> 1524332846
2751680898 --> 3227531497
2751680898 --> 1524332846
1270797816 --> 1397204487
3984060476 --> 1270797816
37984305 --> 3984060476
2751680898 --> 37984305
🛈 DocStrings
Bases: SyntaxHighlighter
Syntax highlighter that uses Pygments for parsing.
Source code in prettyqt/syntaxhighlighters/pygmentshighlighter.py
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | |
highlightBlock(string)
Highlight a block of text.
Source code in prettyqt/syntaxhighlighters/pygmentshighlighter.py
set_style_sheet(stylesheet: str)
Sets a CSS stylesheet.
The classes in the stylesheet should correspond to those generated by:
pygmentize -S <style> -f html
Note that "set_style" and "set_style_sheet" completely override each other, i.e. they cannot be used in conjunction.